package com.tanxi521.afkreward.data;

import com.tanxi521.afkreward.util.ConfigUtil;

import javax.crypto.interfaces.PBEKey;

public class SQLStatement {

    public static String createTable() {
        return ConfigUtil.isMysql() ? MysqlStatement.CREATE_TABLE.getStatement() : SQLITEStatement.CREATE_TABLE.getStatement();
    }

    public static String initPlayer() {
        return ConfigUtil.isMysql() ? MysqlStatement.INIT_PLAYER.getStatement() : SQLITEStatement.INIT_PLAYER.getStatement();
    }

    public static String getRest() {
        return ConfigUtil.isMysql() ? MysqlStatement.GET_REST.getStatement() : SQLITEStatement.GET_REST.getStatement();
    }

    public static String startAfk() {
        return ConfigUtil.isMysql() ? MysqlStatement.START_AFK.getStatement() : SQLITEStatement.START_AFK.getStatement();
    }

    public static String isAfk() {
        return ConfigUtil.isMysql() ? MysqlStatement.IS_AFK.getStatement() : SQLITEStatement.IS_AFK.getStatement();
    }

    public static String getPlayerInfo() {
        return ConfigUtil.isMysql() ? MysqlStatement.PLAYER_INFO.getStatement() : SQLITEStatement.PLAYER_INFO.getStatement();
    }

    public static String updatePlayer() {
        return ConfigUtil.isMysql() ? MysqlStatement.UPDATE_PLAYER.getStatement() : SQLITEStatement.UPDATE_PLAYER.getStatement();
    }

    public static String setOfflineEnd() {
        return ConfigUtil.isMysql() ? MysqlStatement.OFFLINE.getStatement() : SQLITEStatement.OFFLINE.getStatement();
    }

    public static String playerExitUpdate() {
        return ConfigUtil.isMysql() ? MysqlStatement.PLAYER_EXIT.getStatement() : SQLITEStatement.PLAYER_EXIT.getStatement();
    }

    public static String getAfkPlayerList() {
        return ConfigUtil.isMysql() ? MysqlStatement.AFK_PLAYERS.getStatement() : SQLITEStatement.AFK_PLAYERS.getStatement();
    }

    public static String getAfkPlayerCount() {
        return ConfigUtil.isMysql() ? MysqlStatement.AFK_COUNT.getStatement() : SQLITEStatement.AFK_COUNT.getStatement();
    }

    public static String getAfkTop() {
        return ConfigUtil.isMysql() ? MysqlStatement.AFK_TOP.getStatement() : SQLITEStatement.AFK_TOP.getStatement();
    }

    public static String getAllCount() {
        return ConfigUtil.isMysql() ? MysqlStatement.ALL_COUNT.getStatement() : SQLITEStatement.ALL_COUNT.getStatement();
    }

    public static String updateToday() {
        return ConfigUtil.isMysql() ? MysqlStatement.REPLACE_TODAY.getStatement() : SQLITEStatement.REPLACE_TODAY.getStatement();
    }

}
